﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Numbers
{
    public static class NumbersExtension
    {
        public static bool isPositive(this int num)
        {
            return num > 0;
        }

        public static bool isPositive(this Int16 num)
        {
            return num > 0;
        }

        public static bool isPositive(this Int64 num)
        {
            return num > 0;
        }

        public static bool isNegative(this int num)
        {
            return num < 0;
        }

        public static bool isNegative(this Int16 num)
        {
            return num < 0;
        }

        public static bool isNegative(this Int64 num)
        {
            return num < 0;
        }

        public static bool isZero(this int num)
        {
            return num == 0;
        }

        public static bool isZero(this Int16 num)
        {
            return num == 0;
        }

        public static bool isZero(this Int64 num)
        {
            return num == 0;
        }
    }
}
